﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Template_Admin.Master" AutoEventWireup="true" CodeBehind="QuanLy_ChiTiet_CuaHang.aspx.cs" Inherits="Cua_Hang.Admin.QuanLy_ChiTiet_CuaHang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
            float:left;
        }
        .style2
        {
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td colspan="2">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="True" 
                    Font-Size="Larger" ForeColor="#00CC66" Text="Quản Lý Chi Tiết Cửa Hàng"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" class="style2">
                <asp:Label ID="Label2" runat="server" Text="Tên Cửa Hàng"></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="DDL_Tencuahang" runat="server" Height="18px" 
                    Width="224px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label3" runat="server" Text="Loại Sản Phẩm "></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="Tb_TenSanPham" runat="server" Width="224px"></asp:TextBox>
                <asp:TextBox ID="Id_tensanpham" runat="server" Width="30px" Visible="false"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="left">
                <asp:Button ID="Bt_themsanpham" runat="server" Text="Thêm" 
                    onclick="Bt_themsanpham_Click" /> &nbsp; &nbsp;
                <asp:Button ID="Bt_capnhatsanpham" runat="server" Text="Cập Nhật" 
                    onclick="Bt_capnhatsanpham_Click" />
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2" colspan="2" align="center">
                <asp:GridView ID="GV_ChiTietCuaHang" AutoGenerateColumns="False" runat="server" 
                    onselectedindexchanged="GV_ChiTietCuaHang_SelectedIndexChanged" AllowPaging="True" 
                    DataKeyNames="ID_ChiTiet_CuaHang" 
                    onrowcommand="GV_ChiTietCuaHang_RowCommand" 
                    onpageindexchanged="GV_ChiTietCuaHang_PageIndexChanged" 
                    onpageindexchanging="GV_ChiTietCuaHang_PageIndexChanging" 
                    BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" PageSize="4">
                 <Columns>
         
                        <asp:BoundField DataField="ID_ChiTiet_CuaHang" HeaderText="Mã Loại Sản Phẩm" SortExpression="ID_ChiTiet_CuaHang" />
                        <asp:BoundField DataField="ID_cuahang" HeaderText="Mã Cửa Hàng" SortExpression="ID_cuahang" />
                        <asp:BoundField DataField="Ten_ChiTiet_CuaHang" HeaderText="Tên Loại Sản Phẩm" SortExpression="Ten_ChiTiet_CuaHang" />
                        <asp:CommandField SelectText="Sửa" HeaderText="Sửa " ShowSelectButton="True" />

                        <asp:TemplateField HeaderText="Xoá">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" OnClientClick="return confirm('Ban co muon xoa ko?')" runat="server" CommandName="Xoa" CommandArgument='<%# Eval("ID_ChiTiet_CuaHang")%>'>Xoá</asp:LinkButton>
                        </ItemTemplate>
                        </asp:TemplateField>
                 </Columns>
                    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                    <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                    <RowStyle BackColor="White" ForeColor="#330099" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    <SortedAscendingCellStyle BackColor="#FEFCEB" />
                    <SortedAscendingHeaderStyle BackColor="#AF0101" />
                    <SortedDescendingCellStyle BackColor="#F6F0C0" />
                    <SortedDescendingHeaderStyle BackColor="#7E0000" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
